# v412 Schema Design Review Note

v412 adds `Project Documentation/Architecture/WORKSPACE_TYPE_SUBSCRIPTION_SCHEMA_DESIGN_REVIEW.md` as the active schema design review before Prisma changes. It confirms workspace type/account class, plan visibility, trial policy, registration state, owned interface/invited portal ownership, broker distribution limits, internal load-board access, billing gate overrides, and Super Admin audit requirements. v412 does not change Prisma.

# v411 Consolidated Architecture Update

Super Admin now has a first Workspace Types & Access surface at /admin/workspaces/types. This surface reviews paid workspace candidates, owned interfaces, invited portals, subscription/trial state, plan visibility, entitlement summary, and billing gate readiness. Workspace type is inferred only and must not be treated as hard stored truth until schema support is added.

# Consolidated Active Product and Architecture Manual — v394

Status: Active current product/architecture manual  
Created in: v394  
Updated: v397  
Updated: v397  
Updated: v397  
Location: `Project Documentation/06_CONSOLIDATED_ACTIVE_PRODUCT_ARCHITECTURE_MANUAL_V394.md`

## Purpose

This manual consolidates the current Dispatch Spot product and architecture direction into one working document. It reduces reliance on scattered root files, older version-specific notes, and historical build records.

Use this manual for day-to-day product and build decisions after reading the build rules and operating manual. Historical documents remain preserved, but this manual is the current active architecture summary unless a newer source-of-truth document changes it.

## Review basis

v394 reviewed and consolidated the following sources:

- `Project Documentation/04_ROOT_DOCUMENTATION_INVENTORY_MANIFEST_V393.md`
- active architecture files identified in the v393 manifest
- active module-standard files identified in the v393 manifest
- `Project Documentation/01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md`
- available previous Dispatch Spot chat context captured in current project memory
- `Project Documentation/Active/DISPATCH_SPOT_BUILD_RULES.md`
- `Project Documentation/Active/DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.md`
- `Project Documentation/Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`
- latest `Project Documentation/Active/PROJECT_HANDOFF.md` entries

The goal was not to rewrite history. The goal was to put the current usable rules and architecture in one controlled place before root documentation is moved.

Update in v397: this manual was cross-checked against the previous-chat requirements register and available prior Dispatch Spot chat context by module. Missing or partial durable requirements were added here instead of being left only in chat history or historical build notes.

## Documentation precedence

Use this current order for architecture decisions:

1. Current user prompt and stated baseline.
2. `Project Documentation/Active/DISPATCH_SPOT_BUILD_RULES.md`.
3. `Project Documentation/00_CURRENT_OPERATING_MANUAL.md`.
4. This consolidated active product/architecture manual.
5. `Project Documentation/Active/DISPATCH_SPOT_DOCUMENTATION_SOURCE_OF_TRUTH.md`.
6. `Project Documentation/Active/DISPATCH_SPOT_SUPERSEDED_GUIDANCE_REGISTER.md`.
7. `Project Documentation/01_PREVIOUS_CHAT_REQUIREMENTS_REGISTER.md`.
8. `Project Documentation/09_PREVIOUS_CHAT_REQUIREMENTS_CROSS_CHECK_V397.md` when auditing previous-chat coverage.
9. The latest `Project Documentation/Active/PROJECT_HANDOFF.md` entry.
10. Specific active module standards.
11. Historical version/build documents for context only.

If this manual conflicts with an older root architecture file, follow this manual unless the user explicitly changes direction.

## Core product identity

Dispatch Spot is a multi-tenant road-freight operating system for dispatchers, carriers/fleets, drivers, brokers, shippers, and platform administrators.

The long-term product direction is:

- reduce dispatching complexity;
- protect truck revenue and continuity;
- coordinate load movement, paperwork, billing, communication, and follow-up;
- use CORI as an operating assistant, not as a replacement for clear workflows;
- keep each role's interface simple while the platform handles complexity behind the scenes;
- support trust, auditability, privacy, legal consent, and business continuity as core architecture.

## Non-negotiable product rules

1. **One page, one job.** Every normal app page must have a clear working purpose.
2. **Operational pages are not settings pages.** Settings, preferences, opt-ins, provider setup, credentials, and diagnostics belong in Workspace Settings, Workspace Integrations, or Super Admin.
3. **Plain user language wins.** Normal users should not see provider, runtime, token, schema, persistence, pipeline, or build wording.
4. **Preserve planned feature integrity.** Do not remove or shrink important planned capability just to make a build easier. Use staged readiness, guarded actions, or admin-only controls instead.
5. **API-owned truth.** Critical workflows should be backed by service/API/database behavior, not only React state.
6. **Role-aware simplicity.** Users should see what helps their job, not every system capability.
7. **Audit important actions.** Sends, approvals, billing changes, security actions, policy acceptance, and provider-backed activity must be traceable.
8. **Documentation must not drift.** Durable changes belong in the controlled documentation structure, not scattered root notes.

## Core operating model

Dispatch Spot is truck-centered. A truck is treated as:

- a revenue unit;
- a cost unit;
- a dispatch unit;
- a route and schedule unit;
- a paperwork unit;
- a communication unit;
- a performance unit;
- a continuity unit.

Important operating objects include:

- Workspaces
- Users
- Roles and memberships
- Trucks
- Drivers
- Owner operators
- Carriers / companies
- Brokers
- Shippers
- Loads
- Routes
- Paperwork files
- Invoices and payments
- Tasks and follow-ups
- Notifications
- CORI conversations and briefings
- Calls, transcripts, and call outcomes
- Subscription plans, add-ons, entitlements, and billing states
- Audit, security, privacy, and consent records

## Workspace and role model

### Super Admin

Super Admin stays inside the existing `/admin` area. It is the main Dispatch Spot platform control plane.

Super Admin is responsible for:

- workspace creation, review, suspension, reactivation, and support;
- user and membership oversight;
- system roles, permissions, controlled dictionaries, and feature controls;
- subscription plan CRUD, workspace plan assignment, add-ons, overrides, entitlements, and billing state;
- Stripe platform subscription setup and provider-sync monitoring;
- support tooling, audit review, security review, and platform health;
- provider-level monitoring where workspace users should not see technical detail.

A future separate internal subdomain, if created, should be for Dispatch Spot internal monitoring/support only. It must not replace the main `/admin` administration surface.

When a Workspace Admin capability is added or made more functional, the corresponding Super Admin oversight, support, plan, audit, or safety control should be considered in the same build track or documented as the next follow-up. Super Admin should become directly useful for supporting real workspaces, not remain only a provisioning shell.

### Workspace Admin

Workspace Admin manages the tenant's company/workspace settings and users within allowed plan limits.

Workspace Admin may manage:

- company profile;
- team access;
- role assignments allowed by the platform;
- notification preferences and phone opt-ins;
- provider integrations;
- workspace billing/self-service subscription tasks when enabled;
- local business setup.

Workspace Admin should be able to activate, deactivate, and, where policy allows, fully delete workspace users with a clear confirmation guard so accidental deletions do not happen. Deletion must respect audit, ownership, billing-seat, and legal/retention rules.

Workspace Admin should not manage platform-wide role definitions, global schema dictionaries, Super Admin billing overrides, or system-wide feature rollout controls.

### Dispatcher Workspace

Dispatcher workspaces support dispatch companies that manage trucks for carriers or owner operators.

Primary jobs:

- source/assign loads;
- manage live dispatch movement;
- call brokers, drivers, shippers, and customers;
- track paperwork;
- manage dispatch service billing and earnings;
- protect continuity so trucks are not empty or uncovered.

### Company / Fleet Workspace

Company workspaces support carriers/fleets dispatching their own trucks.

Primary jobs:

- manage trucks and drivers;
- dispatch active loads;
- monitor route progress;
- manage paperwork;
- track fleet financial performance;
- handle billing and payment follow-up.

### Driver Workspace / Field User Access

Driver and field access should stay simple and mobile-friendly.

Field users should see:

- assigned loads;
- route and timing instructions;
- messages and updates they need;
- document upload tasks such as BOL, POD, rate confirmation, receipts, and proof;
- limited truck/load metrics when allowed.

Field users should not inherit back-office, billing, Super Admin, or broad CRM access by default.

### Broker / Shipper Workspace

Broker and shipper workspaces are future-facing external collaboration surfaces.

They should support:

- submitting loads;
- requesting trucks;
- tracking active movements;
- sharing messages and documents;
- viewing trusted status timelines.

They must respect cross-workspace visibility rules and must not expose internal dispatcher notes.

## Current page and placement map

| Area | Active purpose | Must not contain |
| --- | --- | --- |
| `/dashboard` / CORI Briefing | Detailed executive daily operations briefing | Provider setup, short KPI-only dashboard, vague summaries |
| Sidebar / navigation | Clean grouped SaaS-style navigation; `/dashboard` should be labeled CORI Briefing and grouped with CORI/Ask CORI surfaces | Unstructured feature pile, stale generic Dashboard/KPI label, or first-page complexity |
| Ask CORI | General-purpose CORI conversation | Required daily briefing replacement, provider setup |
| CORI Financial | Financial briefing, P&L overview, truck-by-truck money view, dispatcher/fleet earnings | Invoice record management clutter |
| CORI Mail | Email briefing, suggested replies, drafts, work cards, final approved send | SMTP/OAuth credential setup, provider diagnostics |
| `/notifications` | Alert list, read/unread, hide/show, direct work links | Preferences, phone capture, opt-ins, test sends, provider setup |
| Workspace Settings > Notifications | Notification preferences, phone capture, urgent-text opt-in/out, delivery readiness | Twilio/SMTP credentials |
| `/company/integrations` | SMTP, Twilio, Stripe, QuickBooks, maps, DAT, OAuth/API credentials and tests | Daily work tasks |
| Dispatch Board | Live freight in motion and active operational execution | Heavy reporting, setup, debug/readiness panels |
| Loads | Load search, records, details, corrections | Broad analytics/reporting maze |
| Routes | Load + truck + driver route planning with CORI help | Provider internals or route data-contract checks |
| Fleet Map | CruiseMapper-style workspace truck visibility with green live-GPS markers, blue estimated-position markers, confidence scoring, hover cards, driver check-in workflow, manual position update readiness, manual position audit persistence contract, and click-through truck detail | Provider credentials, raw GPS/ELD setup, paid provider diagnostics, driver-message sending, marker movement from manual audit records, manual position persistence without audit, or language that treats estimated/manual positions as live |
| Paperwork | Missing proof, BOL, POD, rate confirmations, file linking | Billing record replacement or internal document lifecycle clutter |
| Billing Records | Invoices, unpaid loads, payment follow-up | Full accounting replacement or CORI Financial briefing duplicate |
| CRM & Partners | Brokers, shippers, companies, relationship follow-up | Drivers/owner operators as CRM records |
| People & Assets | Drivers, owner operators, trucks, equipment | Broker/shipper CRM workflows |
| Super Admin | Platform control, support, billing oversight, audit, tenant governance | Workspace-only settings that belong to Workspace Admin |

## CORI architecture

CORI is the assistant layer across Dispatch Spot. CORI should explain, draft, summarize, recommend, and act only when actions are guarded by clear user approval or safe automation rules.

### Ask CORI

Ask CORI remains a clean general-purpose assistant surface. It must not be replaced by CORI Briefing.

Ask CORI should also allow users to revisit older general-purpose topics without mixing those topics into the daily CORI Briefing thread.

### CORI Briefing

`/dashboard` is CORI Briefing.

CORI Briefing must be an executive-assistant style daily business briefing, not a short KPI summary. Users may spend several minutes reading it.

Required direction:

- cover operations, trucks, loads, drivers, customers, paperwork, billing, follow-up, and risk;
- identify trucks, loads, customers, drivers, companies, documents, and billing records clearly on first mention;
- avoid vague lines like "some trucks need attention" without naming which trucks;
- after first mention, refer naturally to known records instead of repeating full copy/paste detail blocks;
- support scroll-back within the current day;
- support check-ins and progress review later in the day;
- allow the user to ask clarifying questions inside the current day's briefing conversation;
- support CORI-enabled actions only when the action is safe, approved, and auditable;
- eventually support a user-defined day-start time, such as 6:00 AM;
- eventually store each day's briefing conversation by date;
- past daily briefings should be revisitable and read-only;
- the current day's briefing can continue and reference past briefings by date/time;
- future roadmap should support email-provider briefing, drafting/sending after approval, and voice briefing/conversation;
- maintain a durable CORI Briefing quality standard now, and later support user/workspace-specific briefing preferences.

### CORI Financial

CORI Financial is separate from Billing Records.

It should provide:

- P&L-style overview;
- income vs expenses;
- truck-by-truck financial detail;
- load-level money pressure;
- dispatcher earnings when the user is a dispatcher;
- fleet earnings when the workspace is a fleet/company;
- a closing total of dispatcher earnings for dispatcher workspaces or fleet earnings for fleet/company workspaces;
- plain financial explanation and next actions.

### CORI Mail

CORI Mail is for email intake, explanation, drafting, work-card creation, review, and approved send.

Rules:

- provider setup stays in `/company/integrations`;
- CORI Mail may show simple connection status, not SMTP/OAuth details;
- real send requires final user approval;
- live send requires connected company email and server-level send enablement;
- send attempts must be audited as approved, queued, sent, failed, or locked;
- suggested replies should be editable before sending;
- work cards should convert email items into operational follow-up without exposing provider internals.
- future provider-backed inbox reading should deepen important-email review while preserving privacy, approval, and plain-language user surfaces;
- v399 send-review/audit visibility now makes approved, queued, sent, failed, and needs-attention outcomes easier to verify without exposing SMTP internals to normal users;
- future CORI Mail work should continue provider-backed inbox reading, draft placement, and deeper operational conversion while preserving the approval-first rule.

### CORI Live Call Copilot

CORI Live Call Copilot helps during broker, driver, and shipper calls.

Direction:

- call-first, not chat-first;
- minimum words necessary during live calls;
- live facts panel extracts useful facts;
- hidden reality panel compares route, truck fit, money, weather/accessorial pressure, and business context;
- advice panel gives rate logic, decision guidance, and speakable next lines;
- call launcher should work from relevant truck/load/customer contexts;
- full-page and popup experiences should share the same truth;
- call outcomes should be saved as structured records when possible.

### CORI Live Listening and Transcript Handling

Live listening and transcript features require privacy and consent discipline.

Rules:

- users must understand when listening/transcription is active;
- consent and disclosure should be handled before real activation;
- partial facts should not become saved facts until promoted by confidence or user/operator confirmation;
- important facts include rate, origin, destination, appointment times, equipment, detention, layover, accessorials, contact details, load result, and callback commitments;
- failure states must be plain and safe.

### CORI Route Planning

Route planning must begin with:

1. load;
2. truck;
3. driver.

Then the dispatcher should use CORI to evaluate the best route.

Route planning direction:

- use reliable maps/routing/weather integrations when selected and connected;
- keep provider setup in `/company/integrations`;
- evaluate commercial truck suitability, accessorial pressure, route risk, timing, weather, and load fit;
- hide provider internals from normal route pages;
- use plain route language.

The specific long-term weather provider has not been finalized in the active docs. Future route/weather work should select the provider deliberately and document the selection.

## Notifications architecture

The old complex Notification Center is retired. The current notifications pattern is normal app-style alerts.

`/notifications` may show:

- active alerts;
- unread/read state;
- urgent alert tags;
- Mark read;
- Mark unread;
- Mark all read;
- Hide;
- Hidden alerts;
- Show again;
- links to the related work record.

`/notifications` must not show:

- notification preference toggles;
- phone number capture;
- urgent text opt-in/out;
- provider setup;
- provider diagnostics;
- test send controls;
- delivery channel configuration.

Notification preferences, phone-number capture, urgent text opt-in/out, and delivery readiness belong in Workspace Settings > Notifications. Provider credentials belong in `/company/integrations`.

Notification digest/email trigger behavior now lives in Workspace Settings > Notifications. It may show digest preview, approved manual digest send, simple delivery readiness, recent digest send history, last-send status, and sanitized retry guidance. Provider setup stays in `/company/integrations`. It must not add delivery configuration, phone capture, channel controls, provider setup, provider diagnostics, or raw delivery logs back to `/notifications`.

SMS/text delivery rules:

- a phone number alone is not consent;
- urgent text alerts require explicit opt-in;
- SMS send attempts must be guarded and audited;
- Twilio setup stays in `/company/integrations`.

## Telephony architecture

Dispatch Spot is moving toward a managed business telephony platform.

Current direction:

- workspace-owned business numbers;
- dispatcher extensions;
- inbound routing based on extensions and assignments;
- busy/offline fallback handling;
- callback/voicemail continuity;
- call state continuity across inbound and outbound activity;
- Twilio/provider setup in `/company/integrations`;
- normal operators see plain call controls, not provider internals;
- browser token issuance, provider session readiness, and live-mode activation must stay guarded and visible only through plain readiness states;
- Super Admin can later monitor deeper provider/platform readiness.

## Subscriptions, entitlements, and billing architecture

Every workspace must have a subscription.

Super Admin must manage:

- subscription plan CRUD;
- workspace plan assignment;
- plan limits;
- add-ons;
- included users/seats;
- paid extra seats/users;
- included trucks and business phone numbers;
- paid extra business phone numbers;
- feature access;
- billing status;
- overrides and support notes.

Entitlement checks should be centralized rather than scattered through pages.

Plan enforcement should support:

- feature access;
- capacity limits;
- over-limit warnings;
- add-on recognition;
- billing holds;
- upgrade/add-on prompts only where useful and not disruptive.

Billing lanes:

1. Dispatch Spot SaaS subscriptions use the Super Admin platform Stripe path.
2. Dispatcher-service billing can later use a separate Stripe path for dispatchers billing carriers.
3. Carrier/company invoices to brokers/shippers can use factoring, Net 30, or other freight-payment workflows rather than Stripe.

## Billing, accounting, and QuickBooks

Billing Records handles invoices, unpaid loads, and payment follow-up.

CORI Financial explains financial health.

A future Accounting Portal / QuickBooks sync should support:

- workspace accounting mode: dispatch company or transportation company;
- money overview;
- receivables;
- payables;
- profitability by load, truck, driver, owner-operator, broker/customer, week/month;
- QuickBooks customer/vendor/invoice/payment mapping;
- sync jobs, retries, errors, and conflict review;
- no silent overwrite of conflicts.

Dispatch Spot should not try to replace full bookkeeping. It should make operations-linked accounting clearer and sync important records to QuickBooks when connected.

## CRM and partner lifecycle

CRM & Partners should focus on relationship records for:

- brokers;
- shippers;
- companies/carriers;
- business contacts and prospects.

Drivers and owner operators belong under People & Assets, not CRM.

CRM should support:

- relationship stages;
- activity timeline;
- tasks and follow-ups;
- tags and saved views;
- notes and relationship intelligence;
- document attachment;
- stage-change history;
- revenue and payout rollups where appropriate.

CRM pages should not become standalone intelligence/reporting mazes. Research and lead intelligence should return inside CRM and/or CORI, not as a confusing separate page.

## Dispatch, loads, trucks, paperwork, and operations

### Dispatch Board

Dispatch Board is for live execution.

It should help operators see:

- active load movement;
- assignment and status;
- urgent exceptions;
- overdue follow-up;
- driver/truck/load context;
- next action.

It should not become a heavy reporting, billing, provider, or settings page.

### Loads

Loads is the record-management surface for load search, filters, details, corrections, and related work.

The list page should stay scannable. Heavy reporting belongs elsewhere.

### Truck pages

Truck pages should help the user run one truck as a business.

Use plain sections such as:

- Current Load;
- Next Load;
- Money;
- Paperwork;
- History.

### Paperwork

Paperwork is for proof and file tasks:

- missing proof;
- BOL;
- POD;
- rate confirmation;
- receipts;
- files to link;
- paperwork fast fixes.

### Routes

Routes should start from load + truck + driver and then help the user make a route decision with CORI support.

### Fleet Map

Fleet Map is separate from Routes. It is the daily map surface for currently dispatched workspace trucks. Green markers mean live driver-app GPS. Blue markers mean estimated position from active-load route progress. Estimated positions must show a confidence score and explanation so dispatchers know when to verify with the driver. The Fleet Map should also surface route-deviation status, ETA/stopped-watch signals, dispatcher action queue readiness, CORI live tracking recommendations, driver check-in workflow, manual dispatcher-confirmed position update readiness, and manual position update audit persistence. Manual updates must remain clearly labeled, audit-only at this stage, and should not move markers or be treated as live GPS. Provider credentials and Google Maps/ELD setup stay in `/company/integrations`.

## Integrations architecture

`/company/integrations` is the workspace provider setup home.

It should hold:

- Custom SMTP / email provider setup;
- Twilio;
- Stripe-related workspace setup when appropriate;
- QuickBooks;
- maps/routing/weather APIs;
- DAT/load board connections;
- future OAuth/API credentials;
- provider tests and diagnostics appropriate for admin-only surfaces.

Normal work pages may show plain connected/not connected messages and simple links back to integrations, but not raw credentials or provider diagnostics.

## Security, privacy, consent, and data lifecycle

Security, privacy, legal acceptance, consent, portability, archive, restore, deletion, and retention are product architecture.

Future features must answer:

- what data is created or changed;
- which roles can see it;
- whether it crosses workspace boundaries;
- whether consent, legal acceptance, or notice is required;
- how it is audited;
- how it is exported, archived, deleted, or restored.

Live listening, phone calls, email sending, SMS, external integrations, billing, and Super Admin support actions require extra audit and consent care.

## Mobile and field readiness

The application should stay future-ready for mobile and field users.

Mobile/field direction:

- driver and owner-operator experiences should be simple and task-oriented;
- file upload and document review should be easy on mobile;
- route and load instructions should be clear;
- offline/low-friction patterns should be considered later;
- avoid crowding field surfaces with back-office details.

## Demo data and scenario standards

Demo data should continue to support realistic dispatch scenarios.

Important scenario standards:

- realistic trucks, drivers, companies, brokers, shippers, loads, paperwork, billing, and follow-up;
- realistic operating status and money pressure;
- enough volume to test CORI Briefing, Dispatch Board, Paperwork, Billing Records, CRM, and notifications;
- seeded data should support a convincing working app, not empty shells.

## Documentation and build-cycle architecture

The build process must stay predictable.

Every build response must include:

1. version title;
2. download link;
3. decision when needed;
4. What changed;
5. What’s Visible by role/location;
6. build validation;
7. WHM command with visible unzip output;
8. Rule Check;
9. next check-in prompt.

WHM command must not use quiet unzip.

Current documentation direction after v398:

- do not delete historical build records;
- keep durable documentation inside `Project Documentation/`;
- treat the root `README.md` as a pointer only;
- mark superseded guidance rather than hiding it;
- update the previous-chat register and consolidated manual when older requirements are rediscovered;
- stop creating new standalone root docs for ordinary builds;
- v398 documentation cleanup is complete enough for normal product feature work to resume.

## Previous-chat requirement coverage check

The following important previous-chat requirements are now represented in this manual:

- stable build-cycle output format;
- visible unzip requirement;
- separate What changed and What’s Visible sections;
- role/location-based What’s Visible sections;
- versioned next prompts;
- planned feature integrity over disabling scope;
- Super Admin stays in `/admin`;
- every workspace has a subscription;
- Stripe platform billing separation from dispatcher-service billing;
- `/dashboard` is CORI Briefing;
- Ask CORI remains separate;
- CORI Financial is separate;
- route planning starts with load + truck + driver;
- notifications page is alert/action-only;
- settings and provider setup stay in the correct settings/admin locations;
- sidebar should remain cleaner and SaaS-like;
- sidebar should label `/dashboard` as CORI Briefing and group CORI surfaces cleanly;
- Workspace Admin team management includes activation, deactivation, and guarded full deletion support;
- CORI Briefing should support scroll-back, progress review, current-day continuation, approved actions, future email/voice briefing, and briefing-quality preferences;
- Ask CORI can revisit older general-purpose topics;
- notification digest/email triggers live in Workspace Settings > Notifications and must respect the v390 settings placement rule;
- telephony must preserve managed-platform identity, browser token/session readiness, and plain operator language;
- dashboards/briefings should use clear visuals without becoming overdone;
- documentation should move into a controlled Project Documentation folder.

## Known open architecture items to resolve later

These are still open and should be handled in future feature cycles, not silently guessed:

1. Final weather/routing provider selection for route planning.
2. Full CORI Briefing persistence, read-only historical briefings, day-start setting, and voice briefing behavior.
3. Live call consent UX and production provider activation gates.
4. Full Super Admin support/monitoring depth after Workspace Admin parity improves.
5. Full workspace billing self-service and Stripe live-mode boundaries.
6. Final sidebar information architecture pass after documentation cleanup is complete.
7. Periodic previous-chat/documentation drift checks when major chat switches or documentation corrections happen.

### v402 Scheduled notification digest planning

Workspace Settings > Notifications now owns scheduled digest planning and guarded trigger checks. It may show digest plan status, trigger rules, blockers, guardrails, digest history, preview, approved send, and simple retry guidance.

The current trigger rules cover urgent alerts, overdue or late work, due-today checks, and daily team digests. Automatic sends are approval-first by default and remain locked unless `DISPATCH_SPOT_NOTIFICATION_AUTO_DIGEST_ENABLED=true` is set at deployment level.

Any automatic digest execution must guard against empty digests, incomplete company email setup, pending sends, recent sends, and repeated daily team digest sends. `/notifications` must remain alert/action-only and must not expose preferences, provider diagnostics, credentials, or delivery setup.

## v403 scheduler/webhook hardening

Notification email digest automation now has a protected server-side scheduler endpoint. The endpoint is guarded by `DISPATCH_SPOT_NOTIFICATION_DIGEST_WEBHOOK_SECRET` and automatic sends remain locked unless `DISPATCH_SPOT_NOTIFICATION_AUTO_DIGEST_ENABLED=true`.

Manual checks in Workspace Settings > Notifications are readiness checks only. They do not auto-send. Automatic sends should be executed only by the protected scheduler/webhook path, with duplicate-send guards and existing OutboundEmailLog audit records.


## v404 Notification Scheduler Health Update

Notification digest scheduler health is part of Workspace Settings > Notifications, not the operational Notifications page.

Workspace Admins may see simple scheduler health, recent scheduler run history, last run status, and aggregate counts for users checked, sent, ready, skipped, and failed. This status must stay plain-language and must not expose scheduler secrets, provider credentials, raw SMTP/Twilio responses, or raw delivery logs.

Protected scheduler run history reuses `OutboundEmailLog` with the `app_notifications.email_digest.scheduler_run` template key. Digest send history remains separate under `app_notifications.email_digest`.

## v405 Super Admin Notification Scheduler Health Update

Super Admin may see platform-wide notification scheduler health inside `/admin/notifications`. This surface is for oversight and support, not provider setup.

Allowed Super Admin scheduler visibility includes simple status labels, automation enabled/approval-first state, webhook configured/not-configured state, recent run count, workspace count, users checked, sent, ready-for-approval, skipped, failed, latest run timing, and recent workspace run summaries.

Super Admin browser surfaces must not expose scheduler secret values, raw authorization headers, SMTP credentials, decrypted integration payloads, raw provider responses, raw delivery logs, or provider diagnostic dumps.

Workspace Settings > Notifications remains the workspace-level notification preferences, digest controls, and scheduler run history surface. Provider setup remains in `/company/integrations`. `/notifications` remains alert/action-only.

## v406 Notification Track Closeout and Next Planning Direction

Notification scheduler operation now includes Super Admin runbook and cron setup guidance. The notification track is complete enough to pause by default unless testing reveals defects.

Next planning should focus on workspace parity and role differentiation. The Dispatcher Workspace is the maturity benchmark. Broker, Company/Fleet, Driver, Carrier/Owner-Operator, and related role workspaces should be reviewed and planned so each matches the quality, clarity, and operational usefulness of the Dispatcher Workspace while still serving the role's distinct job.

The next platform architecture track should also develop the membership subscription engine around the current SaaS architecture. Planning must define trial-period workflow during registration, plan selection timing, workspace creation timing, entitlement limits, add-ons, billing state behavior, expired trial handling, Stripe handoff, and Super Admin oversight.

## v407 Workspace Parity and Subscription/Trial Planning Update

The active planning source for this track is:

`Project Documentation/Architecture/WORKSPACE_PARITY_AND_MEMBERSHIP_SUBSCRIPTION_TRIAL_PLAN.md`

The notification track is complete enough to pause by default. The next platform direction is workspace parity and membership subscription/trial registration planning.

### Workspace parity rule

The Dispatcher Workspace is the maturity benchmark. Future role workspaces should match its level of clarity, usefulness, CORI support, notification behavior, record quality, settings separation, and Super Admin support visibility, but should not copy dispatcher-specific workflows when the role has a different job.

Role workspace direction:

- **Company/Fleet Workspace:** fleet-owned truck/driver operations, fleet dispatch board, truck-by-truck money, paperwork, route progress, fleet P&L, and total fleet earnings.
- **Carrier/Owner-Operator Workspace:** one-truck/few-truck business operations, current/next load, paperwork, route guidance, money, broker/customer contacts, expenses, and simple owner earnings.
- **Driver Workspace:** mobile-first road-focused interface owned by the workspace the driver drives for; current and upcoming loads, truck earnings when allowed, route progress, weather and traffic advisories, truck-stop and refuel planning, rest-hour support, places to eat, repair centers, document upload, dispatch communication, urgent alerts, and limited Ask CORI privileges.
- **Broker Workspace:** load/customer/carrier coordination, coverage board, load tracking, paperwork, billing/receivables, and protected external communication without internal dispatcher-note leakage.
- **Shipper/Customer portal:** shipment requests, tracking, documents, messages, and invoices with limited visibility.

### Membership subscription and trial workflow rule

Every customer/business workspace must have a subscription or trial subscription state at creation. Driver users do not need independent subscriptions by default because they are owned by the workspace they drive for. Sign-up should not create a workspace outside the plan/trial architecture.

The next detailed planning/implementation track must decide:

- workspace type selection during registration;
- public plan selection timing;
- trial length and trial access rules;
- whether a card is required at sign-up;
- workspace creation timing;
- trial end date creation;
- included limits and add-on behavior;
- access behavior for `TRIAL`, `ACTIVE`, `PAST_DUE`, `PAUSED`, and `CANCELED` states;
- Stripe customer/checkout/customer-portal handoff;
- Super Admin plan, entitlement, add-on, trial, billing status, and support visibility.

Do not begin broad role-workspace UI expansion until subscription/trial onboarding and entitlement architecture are settled enough to avoid rework.

## v408 Super Admin Control Center and Driver Workspace Clarification

Use `Project Documentation/Architecture/SUPER_ADMIN_CONTROL_CENTER_INFORMATION_ARCHITECTURE_PLAN.md` before major Super Admin expansion.

Super Admin should be organized as a planned platform operations console with these top-level categories:

1. Platform Command Center
2. Workspaces
3. Subscriptions & Billing
4. Integrations Control Center
5. Phone System & Messaging
6. Notifications & Communications
7. CORI & AI Governance
8. Users, Roles & Security
9. Operations & Support
10. Reports & Analytics
11. Platform Settings
12. Documentation & Runbooks

Super Admin controls platform/provider setup, subscription and billing rules, plan limits, add-ons, integration availability, platform health, support intervention, security, and audit. Workspace Admin controls workspace-level business behavior, assigned resources, operational preferences, team settings, and allowed provider usage. Normal workspace pages remain for doing the work.

Twilio should be treated as a platform-managed service unless a later architecture decision explicitly changes it. Twilio bills Dispatch Spot. Dispatch Spot bills workspaces through Stripe according to subscription plans, included phone numbers, paid extra phone numbers, add-ons, usage rules, and billing status.

Driver accounts/interfaces are owned by the workspace the driver drives for. Drivers do not need independent Dispatch Spot subscriptions by default. Driver surfaces should be mobile-first and road-focused: truck earnings when allowed, current and upcoming loads, route progress, weather and traffic advisories, truck-stop/refuel planning, rest-hour management, places to eat, repair centers, paperwork upload, dispatch communication, urgent alerts, and limited Ask CORI support.


## v409 Role Workspace Architecture and Super Admin Administration Requirements

Use `Project Documentation/Architecture/ROLE_WORKSPACE_ARCHITECTURE_AND_SUPER_ADMIN_ADMINISTRATION_REQUIREMENTS.md` before deeper Super Admin, subscription, workspace-type, Driver Workspace, Freight Broker Workspace, Shipper/Customer, internal load-board, or internal operations work.

The active architecture now distinguishes:

- paid customer workspaces;
- owned user/interface roles;
- portal/collaboration interfaces;
- platform marketplace layers;
- internal Dispatch Spot operations workspaces.

Dispatcher, Company/Fleet, independent Carrier/Owner-Operator, Freight Broker, and possibly large Shipper workspaces are customer/business workspace types that need subscription/trial handling. Driver Workspace is an owned interface under the workspace the driver drives for and does not need an independent Dispatch Spot subscription by default.

Freight Broker Workspace should become a full brokerage operating workspace: customer/shipper management, load creation, carrier list/CRM, carrier onboarding, email load distribution, external load-board posting, future Dispatch Spot internal load-board posting, response capture, tendering, tracking, documents, billing, margin, claims, CORI support, and reports.

Broker load distribution through carrier email lists or a SendGrid-like provider must include opt-out/suppression handling, carrier relationship status, send limits, final review, delivery history, and Super Admin abuse/usage monitoring. Provider credentials and platform provider setup belong in Super Admin / Integrations Control Center or Workspace Integrations where appropriate, not on operational broker work pages.

The future internal Dispatch Spot load board is a platform marketplace layer controlled by plan access, workspace type, verification, posting/search limits, billing status, marketplace rules, support, and audit.

Super Admin should be designed around what each workspace requires Super Admin to control, bill, limit, support, and audit.

## v410 update — membership subscription/trial and workspace-type architecture

The active detailed plan for this area is:

`Project Documentation/Architecture/MEMBERSHIP_SUBSCRIPTION_TRIAL_WORKSPACE_TYPE_ARCHITECTURE.md`

Use it before changing registration, sign-up UI, Prisma schema, subscription enforcement, trial gates, plan visibility, Driver Workspace ownership, invited customer/carrier portals, Freight Broker load distribution, internal load-board access, Stripe handoff, or Super Admin billing visibility.

Current policy direction:

- paid business workspaces need subscription/trial records from creation;
- workspace type and plan selection should happen during registration;
- the initial standard trial is 14 days unless Super Admin later changes the policy;
- drivers and most invited portals are owned interfaces, not independent paid subscriptions;
- broker load distribution, phone numbers, SMS/call usage, load-board posting, and high-cost CORI/AI usage need plan, billing, provider, and audit gates.


## v413 implementation note

The Phase 1 schema foundation from this design review is now implemented. The new durable fields/models are:

- `WorkspaceType`;
- `WorkspaceAccountClass`;
- nullable `Organization.workspaceType`;
- nullable `Organization.accountClass`;
- `SubscriptionPlanFamily`;
- `SubscriptionPlanVisibility`;
- `SubscriptionPlan.planFamily`;
- `SubscriptionPlan.planVisibility`;
- `SubscriptionPlan.visibleWorkspaceTypesJson`;
- `SuperAdminAuditEvent`.

This is a foundation only. Do not use these fields as hard entitlement gates until Super Admin classification workflow, registration flow, plan visibility enforcement, billing gates, and audit-backed override behavior are explicitly designed and built.

v469 Fleet Map manual position audit persistence

v469 allows dispatcher-confirmed manual position updates to be recorded as audit evidence only. The record captures confirmed location, movement status, updated ETA, dispatcher note, previous tracking mode, previous marker coordinates, confidence, readiness state, and marker-effect guardrails. It does not move the truck marker, turn blue estimated markers green, connect GPS/ELD providers, send driver messages, or call paid Google server APIs.